home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / pbmpl91d.zip / PBMPLUS / MAN / PNMSHEAR.MAN < prev    next >
Text File  |  1993-01-08  |  2KB  |  68 lines

  1.  
  2.  
  3. pnmshear(1)                Unix Programmer's Manual                pnmshear(1)
  4.  
  5.  
  6. NAME
  7.      pnmshear - shear a portable anymap by some angle
  8.  
  9. SYNOPSIS
  10.      pnmshear [-noantialias] angle [pnmfile]
  11.                              -----  -------
  12.  
  13. DESCRIPTION
  14.      Reads a portable anymap as input.  Shears it by the specified  angle  and
  15.      produces a portable anymap as output.  If the input file is in color, the
  16.      output will be too, otherwise it will be  grayscale.   The  angle  is  in
  17.      degrees (floating point), and measures this:
  18.          +-------+  +-------+
  19.          |       |  |\       \
  20.          |  OLD  |  | \  NEW  \
  21.          |       |  |an\       \
  22.          +-------+  |gle+-------+
  23.      If the angle is negative, it shears the other way:
  24.          +-------+  |-an+-------+
  25.          |       |  |gl/       /
  26.          |  OLD  |  |e/  NEW  /
  27.          |       |  |/       /
  28.          +-------+  +-------+
  29.      The angle should not get too close to 90 or -90, or the resulting  anymap
  30.      will be unreasonably wide.
  31.  
  32.      The shearing is  implemented  by  looping  over  the  source  pixels  and
  33.      distributing  fractions  to  each of the destination pixels.  This has an
  34.      "anti-aliasing" effect - it avoids jagged edges  and  similar  artifacts.
  35.      However,  it  also  means  that the original colors or gray levels in the
  36.      image are modified.  If you need  to  keep  precisely  the  same  set  of
  37.      colors,  you  can  use  the -noantialias flag.  This does the shearing by
  38.      moving pixels without changing their values.  If you  want  anti-aliasing
  39.      and  don't  care  about  the  precise  colors,  but  still need a limited
  40.      *number* of colors, you can run the result through ppmquant.
  41.                                                         --------
  42.  
  43.      All flags can be abbreviated to their shortest unique prefix.
  44.  
  45. SEE ALSO
  46.      pnmrotate(1), pnmflip(1), pnm(5), ppmquant(1)
  47.  
  48. AUTHOR
  49.      Copyright (C) 1989, 1991 by Jef Poskanzer.
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.                                12 January 1991                               1
  67.  
  68.